<?php
namespace Act\Os;
use Act\Os\Backend;
use Lib\Payment\Payment;
class Payments extends Backend{
	public function doGet(){
		$payments = Payment::getPayments();
		$result = model('#Payment')->search("enabled=1",0,100);
		$enables = [];
		foreach($result as $enable){
			$payments[$enable['payment_code']] = array_merge($payments[$enable['payment_code']],$enable);
		}

		$this->display('index.php',[
			'payments'=>$payments,
		]);
	}
}